#if !defined(AFX_GRAPH_H__87C388A2_A8BD_4547_82C7_67A832D4BAC7__INCLUDED_)
#define AFX_GRAPH_H__87C388A2_A8BD_4547_82C7_67A832D4BAC7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GRAPH.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CGRAPH dialog

class CGRAPH : public CDialog
{
// Construction
public:
	CGRAPH(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CGRAPH)
	enum { IDD = IDD_GRAPH_DIALOG };
	CListCtrl	m_resourcelist;
	//}}AFX_DATA
public:
	float interval_last;
	void DrawAxis(CDC *cdc_ptr, CRect &lpRect );
	void DrawGrid(CDC *cdc_ptr, CRect &lpRect );
	void DrawCurve(CDC *cdc_ptr, CRect &lpRect, CPen *drawpen, int count, float *value_x, float *value_y);
	void DrawSpike(CDC *cdc_ptr, CRect &lpRect, CPen *drawpen, int count, float *value_x, float *value_y);
	void DrawDot(CDC *cdc_ptr, CRect &lpRect, float center_x, float center_y,float radius);
	void DrawFork(CDC *cdc_ptr,CRect &lpRect, float center_x, float center_y,float radius);
	void ShowResTable(void);
protected:
	CPen *axis_pen ;
	CPen *hfunc_pen;
	CPen *wfunc_pen;
	CPen *block_pen;
	CPen *cpu_pen;
	CPen *grid_pen;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGRAPH)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CGRAPH)
	afx_msg void OnPaint();
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GRAPH_H__87C388A2_A8BD_4547_82C7_67A832D4BAC7__INCLUDED_)
